﻿using SqlSugar;
using System;
using System.Linq;
using System.Text;

namespace _RobotInspection.Entities
{
    ///<summary>
    ///设备表
    ///</summary>
    public partial class equipment
    {
           public equipment(){

            this.status =Convert.ToByte("1");
            this.created_at =DateTime.Now;
            this.updated_at =DateTime.Now;

           }

           /// <summary>
           /// Desc:设备ID
           /// Default:
           /// Nullable:False
           /// </summary>  
           [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
           public long id {get;set;}

           /// <summary>
           /// Desc:公司名称
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string company_name {get;set;}

           /// <summary>
           /// Desc:机组
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string unit { get;set;}

           /// <summary>
           /// Desc:设备名称
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string equipment_name {get;set;}

           /// <summary>
           /// Desc:设备编码
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string equipment_code {get;set;}

           /// <summary>
           /// Desc:宝武机器人编号
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string bao_robot_number {get;set;}

           /// <summary>
           /// Desc:设备类型
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string equipment_type {get;set;}

           /// <summary>
           /// Desc:设备位置
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string location {get;set;}

           /// <summary>
           /// Desc:制造商
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string manufacturer {get;set;}

           /// <summary>
           /// Desc:型号
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string model {get;set;}

           /// <summary>
           /// Desc:设备状态：1-正常，0-停用
           /// Default:1
           /// Nullable:True
           /// </summary>           
           public byte? status {get;set;}

           /// <summary>
           /// Desc:设备描述
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string device_description {get;set;}

           /// <summary>
           /// Desc:创建时间
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           public DateTime? created_at {get;set;}

           /// <summary>
           /// Desc:更新时间
           /// Default:CURRENT_TIMESTAMP
           /// Nullable:True
           /// </summary>           
           public DateTime? updated_at {get;set;}

    }
}
